package com.leyou.common.domain;

import com.leyou.common.exceptions.LyException;
import lombok.Getter;
import org.joda.time.DateTime;

/**
 * @version V1.0
 * @author: Ljxpa
 * @date: 2020/03/02 21:18
 * @description:
 */
@Getter
public class ExceptionResult {
	private int status;
	private String message;
	private String timestamp;

	public ExceptionResult(LyException e){
		this.status = e.getStatus();
		this.message = e.getMessage();
		this.timestamp = DateTime.now().toString("yyyy-MM-dd HH:mm:ss");
	}
}
